
// LangToolsDoc.cpp : implementation of the CLangToolsDoc class
//

#include "stdafx.h"
#include "LangTools.h"

#include "LangToolsDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CLangToolsDoc

IMPLEMENT_DYNCREATE(CLangToolsDoc, CDocument)

BEGIN_MESSAGE_MAP(CLangToolsDoc, CDocument)
END_MESSAGE_MAP()


// CLangToolsDoc construction/destruction

CLangToolsDoc::CLangToolsDoc()
{
	// TODO: add one-time construction code here

}

CLangToolsDoc::~CLangToolsDoc()
{
}

BOOL CLangToolsDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	reinterpret_cast<CEditView*>(m_viewList.GetHead())->SetWindowText(NULL);

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)

	return TRUE;
}




// CLangToolsDoc serialization

void CLangToolsDoc::Serialize(CArchive& ar)
{
	// CEditView contains an edit control which handles all serialization
	reinterpret_cast<CEditView*>(m_viewList.GetHead())->SerializeRaw(ar);
}


// CLangToolsDoc diagnostics

#ifdef _DEBUG
void CLangToolsDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void CLangToolsDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG


// CLangToolsDoc commands
